package com.killer.service;

import com.killer.dao.StudentDao;
import com.killer.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentService {

    @Autowired
    private StudentDao studentDao;

    public List<Student> list(){
        return studentDao.selectList(null);
    }

    public void add(Student student){
        studentDao.insert(student);
    }
}
